import turtle
# 参数分别为画布的宽(单位像素), 高, 背景颜色 turtle.screensize(canvwidth=None, canvheight=None, bg=None)
turtle.screensize(bg="red")

# turtle.setup(width=0.5, height=0.75, startx=None, starty=None)
# width, height: 输入宽和高为整数时, 表示像素; 为小数时, 表示占据电脑屏幕的比例
# (startx, starty): 这一坐标表示 矩形窗口左上角顶点的位置, 如果为空,则窗口位于屏幕中心

turtle.setup(width=400, height=400, startx=100, starty=100)
# 设置画笔移动速度,画笔绘制的速度范围[0,10]整数, 数字越大越快?
turtle.speed(10)

print(turtle.pencolor())

x1,y1 = 40,-69.28
x2,y2 = -40,-69.28
x3,y3 = -80,-9.8
x4,y4 = -40,69
x5,y5 = 40,69
x6,y6 = 80,0

turtle.penup()
turtle.goto(x1,y1)
turtle.write(str(x1)+","+str(y1))

turtle.pendown()
turtle.goto(x2,y2)
turtle.write(str(x2)+","+str(y2))

turtle.goto(x3,y3)
turtle.write(str(x3)+","+str(y3))

turtle.goto(x4,y4)
turtle.write(str(x4)+","+str(y4))

turtle.goto(x5,y5)
turtle.write(str(x5)+","+str(y5))

turtle.goto(x6,y6)
turtle.write(str(x6)+","+str(y6))

turtle.goto(x1,y1)


turtle.hideturtle()

turtle.done()